//
//  TargetViewController.m
//  动画
//
//  Created by 张国文 on 16/9/13.
//  Copyright © 2016年 李国峰. All rights reserved.
//

#import "TargetViewController.h"
#import "CustomPopAnimation.h"


@implementation TargetViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
//    self.navigationController.delegate = self;
    self.navigationItem.title = @"第二页";
    //[self.navigationController.navigationBar setBarTintColor:[UIColor cyanColor]];
    self.view.backgroundColor = [UIColor redColor];
    
    UIButton *dismissButton = [UIButton buttonWithType:UIButtonTypeSystem];
    dismissButton.frame = CGRectMake(50, 100, 150, 50);
    [dismissButton setTitle:@"dissmiss" forState:UIControlStateNormal];
    [dismissButton addTarget:self action:@selector(dismiss:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:dismissButton];
    
}

- (void)dismiss:(UIButton *)button
{
    [self dismissViewControllerAnimated:YES completion:nil];
}



@end
